<?php
require_once('lanceur_spip.php');


class TestBaliseSecureImageShow extends SpipTest {
	
    function testTagMustExist(){
		$code = '[(#SECURIMAGE_SHOW|oui)ok]';                
        $this->assertOkCode($code);        
	}
    	
	function testMustHaveImgWithID(){
		$code = '#SECURIMAGE_SHOW';
        $this->assertPatternCode('/^<img.*id="securimage_image"/', $code);
	}
    
    //contain 'src' attribute with 'securimage/securimage_show.php' string in it
    function testMustHaveSrcWithSecurimagePath(){
		$code = '#SECURIMAGE_SHOW';
        $this->assertPatternCode('/src=".*securimage\/securimage_show_captcha\.php.*"/', $code);
	}
}